package javaRew;

/**
 * Created by xjweng on 2017/1/30.
 */
public class printAreas {
    public static void main(String[] args){
        printAreas printObj = new printAreas();
        Circle cirObj = new Circle(3);
        printObj.printAreas(cirObj,5);
        System.out.println(printObj.max(3,4,5));
    }
    public void printAreas(Circle c,int time){
        System.out.println("Radius\t\tArea");
        for (int i = 1; i <= time; i++) {
            c.setRadius(i);
            System.out.println(c.getRadius() + "\t\t" + c.findArea());
        }
    }
    public int max(int a, int b){
        return a > b ? a : b;
    }
    public double max(double a, double b){
        return a > b ? a : b;
    }
    public double max(double a, double b, double c){
        return this.max(this.max(a,b),c);
    }
}
